package com.cloud.cloudshop.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class MyJob {

    @Scheduled(cron = "* * * * * *")
    public void run() {
        System.out.println("定时任务执行了！");
    }
}
